<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch"
          action="${request.getContextPath()}/dailyWipReport/dailyWipReport" method="post">
        <div class="bjui-searchBar">
            <g:hiddenField name="SYS_QUERY_NAME" value="dailyWipReport"/>
            <g:hiddenField name="EXPORT_CONTENT_NAME" value="Excel"/>

            <label>Part ID：</label>
            <g:select name="part" from="${partList}" data-toggle="selectpicker" data-live-search="true"
                      optionKey="reserved5" optionValue="reserved5" value="${part}" data-size="12" data-width="200"
                      noSelection="['': 'ALL']" data-nextselect="#lotsList"
                      data-refurl="${request.getContextPath()}/JsonData/getOptionHTMLByTarget?name={value}&SYS_QUERY_NAME=lotsList"/>&nbsp;
            <button type="submit" class="btn-default" data-icon="search">查询</button>&nbsp;
            <button type="button" class="btn-blue"
                    onclick="javascript:bjuiExportExl('#pagerForm', '${request.getContextPath()}/dailyWipReport/exportExcel')"
                    data-icon="file-excel-o" title="导出Excel">导出</button>&nbsp;
        </div>
    </form>
</div>

<div class="bjui-pageContent tableContent">

        <g:if test="${dailyWipReportList.size() > 0}">
            <table data-toggle="tablefixed" data-width="100%" data-nowrap="true">
                <thead>
                <tr>
                    <th width="100">序号</th>
                    <th width="100">优先级</th>
                    <th width="100">客户产品名</th>
                    <th width="100">销售订单号</th>
                    <th width="100">子订单号</th>
                    <th width="100">批次号</th>
                    <th width="100">工艺</th>
                    <th width="100">投片数量</th>
                    <th width="100">当前数量</th>
                    <th width="100">当前阶段</th>
                    <th width="100">当前工步/总工步</th>
                    <th width="100">状态</th>
                    <th width="100">当前停留时间</th>
                    <th width="100">投片时间</th>
                    <th width="100">批次类型</th>
                    <th width="100">BANK放行时间</th>
                    <th width="100">总暂停时间</th>
                    <th width="100">计划完成时间</th>
                    <th width="100">变更时间</th>
                    <th width="100">未来暂停</th>
                    <th width="100">入库时间</th>
                    <th width="100">交期状态</th>
                </tr>
                </thead>
                <tbody>
                <g:each in="${dailyWipReportList}" status="i" var="dataInstance">
                    <tr>
                        <td>${i+1}</td>
                        <td>${dataInstance.PRIORITY}</td>
                        <td>${dataInstance.RESERVED5}</td>
                        <td>${dataInstance.CUSTOMER_ORDER}</td>
                        <td>${dataInstance.RESERVED8}</td>
                        <td>${dataInstance.LOT_ID}</td>
                        <td>${dataInstance.PROCESS_NAME}</td>
                        <td>${dataInstance.START_MAIN_QTY}</td>
                        <td>${dataInstance.MAIN_QTY}</td>
                        <td>${dataInstance.STAGE_ID}</td>
                        <td>${dataInstance.SEQ}</td>
                        <td>${dataInstance.DISPLAY_STATE}</td>
                        <td>${dataInstance.DURTION}</td>
                        <td>${dataInstance.START_TIME}</td>
                        <td>${dataInstance.LOT_TYPE}</td>
                        <td>${dataInstance.BANK}</td>
                        <td>${dataInstance.TOTALHOLD}</td>
                        <td>${dataInstance.PLAN_END_DATE}</td>
                        <td>${dataInstance.BGTIME}</td>
                        <td>${dataInstance.WLZT}</td>
                        <td>${dataInstance.END_TIME}</td>
                        <td>${dataInstance.STATE}</td>
                    </tr>
                </g:each>
                </tbody>
            </table>
        </g:if>
        <g:else>
            <g:render template="../template/emptyPanel"/>
        </g:else>

</div>

<script type="text/javascript">

    //导出
    $(function () {
        $("#edcExport").click(function () {
            exportExcelbyWeb(".edcEXcel");
        });
    });
</script>